package com.xzq.erp.domain.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.xzq.erp.enums.CustomerGrade;
import com.xzq.erp.enums.CustomerType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户信息表
 * </p>
 *
 * @author xzq
 * @since 2025-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_customer")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 地址
     */
    @TableField("address")
    private String address;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 客户类型:1-个人,2-企业,3-政府,4-其他
     */
    @TableField("customer_type")
    private CustomerType customerType;

    /**
     * 客户等级:1-普通,2-银牌,3-金牌,4-钻石
     */
    @TableField("grade")
    private CustomerGrade grade;

    /**
     * 历史成交总额
     */
    @TableField("historical_total")
    private BigDecimal historicalTotal;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


}
